<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script src="https://kit.fontawesome.com/22f7dfb060.js" crossorigin="anonymous"></script>
        <link rel="stylesheet" href="css/style3.css">
        <title>nav</title>
    </head>
    <body>
        <header>
            <div class="logo">ZIMINGZPP</div>
            <nav>
                <ul>
                    <li><a href="#" class="active">Home</a></li>
                    <li><a href="#">About</a></li>
                    <li><a href="#">Services</a></li>
                    <li><a href="#">Team</a></li>
                    <li><a href="#">Portfolio</a></li>
                    <li><a href="#">Contact</a></li>
                </ul>
            </nav>
            <div class="menu-toggle"><i class="fa fa-bars" aria-hidden="true"></i></div>
        </header>

        <script>
            const menuToggle = document.querySelector('.menu-toggle');
            const nav = document.querySelector('nav');
            menuToggle.addEventListener('click', () => {
                if (nav.className != 'active') {nav.className = 'active';}
                else {nav.className = '';}
            });
        </script>
    </body>
</html>
